package com.eastfair.venuebooking.api;

import com.eastfair.core.base.R;
import com.eastfair.venueservice.entity.BondConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * 保证金配置 feign.
 *
 * @author dqq
 * @date 2023 /4/17
 */
@FeignClient(value = "venue-services-manage/bondConfig")
public interface BondConfigFeign {

    /**
     * 展会ID，主场ID，面积查询保证金配置.
     *
     * @param exhibitionManageId the exhibition manage id
     * @param homeId             the home id
     * @param siteArea           the site area
     * @return the by site area
     */
    @GetMapping("/get/siteArea")
    R<BondConfig> getBySiteArea(@RequestParam("exhibitionManageId") Long exhibitionManageId,
                                @RequestParam("homeId") Long homeId,
                                @RequestParam("siteArea") BigDecimal siteArea);
}